package com.wangce.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * ClassName: Dim
 * Description:
 * date: 2021/11/11 20:01
 *
 * @author 凡人
 * @since JDK 1.8
 */
public class Dim {
    private Long orderId;
    private Status orderStutus;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;
    private Double minPrice;
    private Double maxPrice;

    @Override
    public String toString() {
        return "Dim{" +
                "orderId=" + orderId +
                ", orderStutus=" + orderStutus +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                ", minPrice=" + minPrice +
                ", maxPrice=" + maxPrice +
                '}';
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Status getOrderStutus() {
        return orderStutus;
    }

    public void setOrderStutus(Status orderStutus) {
        this.orderStutus = orderStutus;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Double getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(Double minPrice) {
        this.minPrice = minPrice;
    }

    public Double getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(Double maxPrice) {
        this.maxPrice = maxPrice;
    }

    public Dim() {
    }

    public Dim(Long orderId, Status orderStutus, Date startDate, Date endDate, Double minPrice, Double maxPrice) {
        this.orderId = orderId;
        this.orderStutus = orderStutus;
        this.startDate = startDate;
        this.endDate = endDate;
        this.minPrice = minPrice;
        this.maxPrice = maxPrice;
    }
}
